package com.uzai.console.web.menuclickmonitor;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.dto.menuclickmonitor.MenuClickMonitorDto;
import com.uzai.console.service.menuclickmonitor.MenuClickMonitorService;
import com.uzai.console.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 抖音订单
 *
 * @author liuqi
 * @date 2021年08月16日 15:11
 */
@Api(value = "保存菜单点击次数", tags = "系统设置|保存菜单点击次数")
@ApiSort(10)
@RestController
public class MenuClickMonitorController extends BaseController {
    private Logger logger = LoggerFactory.getLogger(MenuClickMonitorController.class);

    @Autowired
    private MenuClickMonitorService menuClickMonitorService;

    @ApiOperation(value = "保存菜单点击次数", notes = "保存菜单点击次数")
    @ApiOperationSupport(order = 1)
    @PostMapping("/menuClickMonitor/save")
    public Object saveMenuClickMonitor(@RequestBody MenuClickMonitorDto menuClickMonitorDto) {
        menuClickMonitorService.saveMenuClickMonitor(menuClickMonitorDto);
        return true;
    }

}
